<template>
  <div class="pagination-bar">
    <span>当前筛选下成果数：{{ total }}</span>
    <el-pagination
      background
      layout="prev, pager, next, sizes"
      :total="total"
      :page-size="pageSize"
      :page-sizes="[10, 20, 50]"
      class="pagination"
    />
  </div>
</template>

<script setup>
defineProps({
  total: {
    type: Number,
    default: 0
  },
  pageSize: {
    type: Number,
    default: 10
  }
})
</script>

<style scoped>
.pagination-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}
.pagination {
  --el-pagination-bg-color: #fff;
  --el-pagination-active-bg-color: #eaf7e2;
  --el-pagination-active-color: #7ac143;
}
</style> 